﻿using System;

namespace Vbyte.DataSource.Cache
{
    /// <summary>
    /// 对缓存时间的读取支持
    /// </summary>
    public interface ICacheTimeSupport
    {
        /// <summary>
        /// 获取缓存时间(UTC格式)
        /// </summary>
        DateTime GetCacheTimeUTC();

        /// <summary>
        /// 当前数据的更新时间(UTC格式)
        /// </summary>
        DateTime GetUpdateTimeUTC();

        /// <summary>
        /// 设置缓存的更新时间(UTC格式)
        /// </summary>
        /// <param name="dtUTC">缓存的更新时间(UTC格式)</param>
        void UpdateCacheTimeUTC(DateTime dtUTC);

    }
}
